<?php
class DBCache {
	public function getCache($prefix){
		$frontend = 'Core';
		$frontendOptions = array(
			'caching' => true,
			'lifetime' => 300,
			'automatic_serialization' => true
		);
		$backend = 'File';
		$backendOptions = array(
			'cache_dir' => APPLICATION_PATH . '/cache',
			'file_name_prefix' => $prefix
		);
		//实例化缓存对象
		$coreCache = Zend_Cache::factory($frontend, $backend, $frontendOptions, $backendOptions);
		return $coreCache;
	}		
}